import React from 'react';

import ScrollList from './ScrollList'

import logo from './logo.svg';
import './App.css';

function App() {
  console.log('1111')
  function createData() {
    const arr = []
    for (let i = 0; i < 100000; i++) {
      arr.push('i' + i);
    }
    return arr
  };

  const dataSource = createData();

  const ScrollListProps = {
    rowHeight: 50,
    dataSource
  }

  return (
    <div className="App">
      <ScrollList
        ScrollListProps={ScrollListProps}
      />
      {/* <header className="App-header">
        <img src={logo} className="App-logo" alt="logo" />
        <p>
          Edit <code>src/App.js</code> and save to reload.
        </p>
        <a
          className="App-link"
          href="https://reactjs.org"
          target="_blank"
          rel="noopener noreferrer"
        >
          Learn React
        </a>
      </header> */}
    </div>
  );
}

export default App;
